#pragma once
#include "VertexBuffer.h"
#include "IndexBuffer.h"
#include "GraphicsDeviceManager.h"
#include "Vertex.h"
#include "Texture2D.h"

class ModelMesh
{
public:
	ModelMesh();
	~ModelMesh();
public:
	void Draw();
	void UnloadContent();
public:
	IndexBuffer*	GetIndexBuffer() const;
	unsigned int	GetIndexCount() const;
	Texture2D*		GetTexture() const;
	VertexBuffer*	GetVertexBuffer() const;
	unsigned int	GetVertexCount() const;
private:
	IndexBuffer*	m_pIndexBuffer;
	unsigned int	m_nIndexCount;
	Texture2D* 		m_pTexture;
	VertexBuffer* 	m_pVertexBuffer;
	unsigned int	m_nVertexCount;
private:
	friend class ModelManager;
};